#  This material contains proprietary software of Entropic Speech, Inc.  
#  Any reproduction, distribution, or publication without the the prior   
#  written permission of Entropic Speech, Inc. is strictly prohibited.
#  Any public distribution of copies of this work authorized in writing by
#  Entropic Speech, Inc. must bear the notice:
#
#      "Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved"
#
#  @(#)Makefile	1.2	11/30/87 ESI

CFLAGS = -g $(PROGCFLAGS)

OBJS = iqlsf.o invert.o table.o

SRCS = iqlsf.c invert.c table.c

iqlsf: $(OBJS) $(SPSLIB)
	cc $(CFLAGS) $(OBJS) $(SPSLIB) -lm -o iqlsf

iqlsf.o:	$(SINC)/esps.h $(SINC)/anafea.h $(SINC)/fea.h $(SINCL)/feaquant.h
invert.o:	$(SINC)/esps.h $(SINC)/anafea.h $(SINC)/fea.h $(SINCL)/feaquant.h qlsf.h
table.o:	qlsf.h

install: iqlsf
	-strip iqlsf
	-mv -f $(BINDIR)/iqlsf $(OLDBIN)/iqlsf
	-chmod $(PROGMOD) $(OLDBIN)/iqlsf
	mv iqlsf $(BINDIR)/iqlsf
	chmod $(PROGMOD) $(BINDIR)/iqlsf
	-diffmk $(MANDIR)/man1/iqlsf.1 iqlsf.1 man.diff
	@echo diffmked man page left in man.diff
	cp iqlsf.1 $(MANDIR)/man1/iqlsf.1
	chmod $(MANMOD) $(MANDIR)/man1/iqlsf.1

clean:	
	rm -f $(OBJS) iqlsf 
	
lint:	$(SRCS)
	$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIB) -lm > lint
